package com.cy.pj.sys.util;

import org.apache.shiro.crypto.hash.Md5Hash;

public class MD5Util {
    private static final String SALT = "bonc";

    /**
     * MD5加密
     * @param str
     * @return
     */
    public static String md5(String str) {

        return new Md5Hash(str, SALT).toString();
    }

    public static void main(String[] args) {
        System.out.println(MD5Util.md5("admin"));
    }

}
